package com.kly.user.enums;

public enum ImageType {

    IMAGE(1, "IMAGE", "IMAGE"),

    VIDEO(2, "VIDEO", "VIDEO")
    ;

    private final int type;

    private final String Value;

    private final String description;


    ImageType(int type, String value, String description) {
        this.type = type;
        Value = value;
        this.description = description;
    }

    public int getType() {
        return type;
    }

    public String getValue() {
        return Value;
    }

    public String getDescription() {
        return description;
    }


    public static ImageType fromType(int type) {
        for (ImageType userStatus : values()) {
            if (userStatus.getType() == type) {
                return userStatus;
            }
        }
        return null;
    }
}
